<layout name='page' />
<block name="content">
	{:widget('page_header/simple',array('name'=>'导入用户','search'=>'N'))}
	<form method='post' id="form_data" enctype="multipart/form-data" class="frame">
		<input type="hidden" name="opmode" value="import">
		<div class="box">
			1.下载导入模版 <a class="btn btn-primary" href="/{:config('TEMPLETE_PATH')}/user.xls" target="_blank"><i class="fa fa-download"></i>下载</a>
		</div>
		<div class="box">
			2.按照Excel格式，整理用户信息，不要调整列循序
		</div>
		<div class="box">
			3.选择要导入的文件
			<input style="" type="file" name="uploadfile" value="" >
		</div>
		<div class="box">
			<a class="btn btn-normal" onclick="save()">导入</a>
			<a class="btn btn-return" onclick="go_return_url()">取消</a>
		</div>
	</form>
</block>
<block name="js">
	<script type="text/javascript">
		layui.use('global', function() {
			var $ = layui.jquery;
			var fn = {
				save : function() {
					send_form("form_data", "{:url('import')}", "__URL__");
				}
			};
		});
	</script>
</block>
